home *** CD-ROM | disk | FTP | other *** search
/ Trusted Irix /B 4.0.4 / Trusted-Irix B-4.0.1.iso / dist / eoe1.idb / usr / include / sys / gse.h.z / gse.h
C/C++ Source or Header  |  1992-04-03  |  2KB  |  77 lines

  1. /**************************************************************************
  2.  *                                      *
  3.  *          Copyright (C) 1986, Silicon Graphics, Inc.          *
  4.  *                                      *
  5.  *  These coded instructions, statements, and computer programs  contain  *
  6.  *  unpublished  proprietary  information of Silicon Graphics, Inc., and  *
  7.  *  are protected by Federal copyright law.  They  may  not be disclosed  *
  8.  *  to  third  parties  or copied or duplicated in any form, in whole or  *
  9.  *  in part, without the prior written consent of Silicon Graphics, Inc.  *
  10.  *                                      *
  11.  **************************************************************************/
  12.  
  13. #ident "$Revision: 1.4 $"
  14.  
  15. /**************************************************************************
  16.  *
  17.  *     gse.h
  18.  *
  19.  *      Device dependent information for the gse device driver (gse.c)
  20.  *    running on Silicon Graphics workstations
  21.  *
  22.  *    REVISIONS:
  23.  *
  24.  *     6-02-88  HRG    Added copyright
  25.  *    05-19-88    Added p_pid.
  26.  *    04-20-88    Added #defines for q ptrs.
  27.  *
  28.  ***************************************************************************/
  29.  
  30. /*
  31.  * Configuration info
  32.  */
  33. #define GSE_MAXCTLR    4
  34. #define GSE_MAX_ADDR    512*1024
  35. #define GSE_BUFFERSIZE    4200
  36. #define GSE_RESETIME    10*HZ
  37. /*
  38.  * Device location info
  39.  */
  40. /* queue stuff */
  41. #define QFETCH        0x0f0a        /* outbound q ptrs.    */
  42. #define QSTORE        0x0f0c
  43. #define    GSGWFP        0X0F22        /* cmd q ptrs.        */
  44. #define GSGWSP        0X0F24
  45. #define    GWGSFP        0X0F26
  46. #define    GWGSSP        0X0F28
  47.  
  48. #define GWGSCQ        0x800
  49. #define CMDQLEN        0x10
  50. #define VECTOR_CMD    5
  51. #define RESETCODE    0x20
  52. #define QN_MASK        0xf
  53. /*
  54.  * State variable definitions
  55.  */
  56. #define GSE_INIT    1
  57. #define GSE_OPEN    2
  58. #define GSE_WAIT    4
  59. #define GSE_INTPEND    8
  60. #define GSE_SELECT    0x10
  61. #define GSE_RESET    0x20
  62. #define GSE_SIGNAL    0x40
  63. /*
  64.  * Device structure
  65.  */
  66. struct gse_state
  67.     {
  68.     int state;        /* device state */
  69.     int base;        /* physical VME A32 base address */
  70.     unsigned short *rbase;    /* physical VME A16 reset address */
  71.     int vector;        /* interrupt vector */
  72.     unsigned short *buffer;    /* kernel data buffer */
  73.     struct proc *proc;    /* user structure pointer */
  74.     short p_pid;    /* pid of opener.                */
  75.     int signal;        /* signal number to use for wakeup */
  76.     };
  77.